package com.wch.demo.configfile.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.wch.demo.configfile.entity.DefineYml;

@Controller
@RequestMapping("/define")
public class DefineController {

	@Autowired
	private DefineYml defineEntity;
	
	/**
	 * 这里测试自定义文件哈
	 * @return
	 */
	@RequestMapping("/getDefineYaml")
	@ResponseBody
	public String GetDefineYamlInfo(){
		
		String str = "test.name="+defineEntity.getBaseName()+"----test.sex="+defineEntity.getBaseSex()+"---test.age="+defineEntity.getBaseAge();
		return str;
	}
}
